(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.CategoriesModel = (function(_super) {

    __extends(CategoriesModel, _super);

    function CategoriesModel() {
      return CategoriesModel.__super__.constructor.apply(this, arguments);
    }

    CategoriesModel.Column = 'Name';

    CategoriesModel.Direction = 0;

    CategoriesModel.BookViewType = 1;

    CategoriesModel.prototype.defaults = {
      CategoryId: '',
      Page: 1,
      Column: 'Name',
      Direction: 0,
      BookViewType: 1
    };

    CategoriesModel.prototype.setStaticProperty = function(attributeName, attributeValue) {
      if (attributeName === "Column") {
        CategoriesModel.Column = attributeValue;
        this.attributes.Column = attributeValue;
      }
      if (attributeName === "Direction") {
        CategoriesModel.Direction = attributeValue;
        this.attributes.Direction = attributeValue;
      }
      if (attributeName === "BookViewType") {
        CategoriesModel.BookViewType = attributeValue;
        return this.attributes.BookViewType = attributeValue;
      }
    };

    CategoriesModel.prototype.url = function() {
      var url;
      url = SiteMap.Categories.Index + "/" + this.attributes.CategoryId;
      url += "?categoryId=" + this.attributes.CategoryId;
      url += "&page=" + this.attributes.Page;
      url += "&Column=" + CategoriesModel.Column;
      url += "&Direction=" + CategoriesModel.Direction;
      url += "&viewType=" + CategoriesModel.BookViewType;
      return url;
    };

    CategoriesModel.prototype.parse = function(response) {
      var attrs;
      attrs = {};
      attrs.Items = response;
      return attrs;
    };

    return CategoriesModel;

  })(Backbone.Model);

}).call(this);
